﻿<%@ Page Language="C#" MasterPageFile="~/Shared/FormPage.Master" AutoEventWireup="true" CodeBehind="WorkItemAdd2.aspx.cs" Inherits="Microsoft.JCI.Portal.Dispatch.WorkItemAdd2" StylesheetTheme="GlobleTheme" %>

<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadWindow.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<%@ Register src="../UserControl/CustomerCtrl.ascx" tagname="CustomerCtrl" tagprefix="uc1" %>

<%@ Register assembly="RadInput.Net2" namespace="Telerik.WebControls" tagprefix="rad" %>
<%@ Register assembly="RadUpload.Net2" namespace="Telerik.WebControls" tagprefix="rad" %>
<%@ Register assembly="RadAjax.Net2" namespace="Telerik.WebControls" tagprefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../Content/global.js" type="text/javascript"></script>
    <link href="../Content/Tab/tabs.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function CheckForm() {
            return true;
        }       
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphFormArea" runat="server">         
    <div id="areaForm2" class="area">   
    
           <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="9">
                        <img hspace="3" src="../Content/Menu/mnu_vSpacer.gif">
                    </td>
                    <td class="icMenu" nowrap>
                        <asp:LinkButton ID="lnkbtnSaveAndClose" runat="server" 
                            OnClientClick="return CheckForm();" onclick="lnkbtnSaveAndClose_Click"><span class="menu" title="保存&amp;关闭" onclick="window.execScript(this.action);"><img class="mnuBtn" src="../Content/Menu/SaveClose_16_blue.gif"><span class="mnuBtn">保存&amp;关闭</span></span></asp:LinkButton>
                        <img src="../Content/Menu/separator.gif">
                        <span class="menu" title="关闭" onclick="window.close();">
                            <img class="mnuBtn" src="../Content/Menu/Close_16_blue.gif"><span class="mnuBtn">关闭</span></span>
                    </td>
                </tr>
            </tbody>
        </table>
                        
     <table class="mnubar" cellspacing="0" cellpadding="0" height="400px">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>客户信息</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                    </td>
                </tr>
            </tbody>
        </table> 
        <div style="display: inline" id="appForm_tab0" class="tab">
           <uc1:CustomerCtrl ID="ucCustomerCtrlInfo" runat="server" />
            
            <div style="text-align:center;MARGIN-RIGHT: auto; MARGIN-LEFT: auto; display:none;">
            <asp:Button ID="btnAddNew" runat="server" Text="新增客户" CssClass="button" 
                    onclick="btnAddNew_Click"/>
            </div>
        </div>
            <div style="margin: 5px 0 5px 0">
        </div> 
        <table style="table-layout: fixed" cellspacing="0" cellpadding="3" width="100%">
        <tbody>
        <tr><td colspan="4">开机调试单基本信息</td></tr>
        <tr>
        <td>客户名称：</td>
        <td>
            <asp:TextBox ID="txtCustomerName" runat="server"></asp:TextBox></td>
        <td>电  话：</td>
        <td>
            <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
        <td>客户类型：</td>
        <td>
            <asp:DropDownList ID="ddlCustomerType" runat="server">
            <asp:ListItem Text="用户" Value="用户"></asp:ListItem>
            <asp:ListItem Text="物业" Value="物业"></asp:ListItem>
            <asp:ListItem Text="工程公司" Value="工程公司"></asp:ListItem>
            </asp:DropDownList>
        </td>
        <td>客户地址:</td>
        <td>
            <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
        <td>销售单位：</td>
        <td><asp:TextBox ID="txtSalesUnit" runat="server"></asp:TextBox></td>
        <td>发票号码：</td>
        <td><asp:TextBox ID="txtTicketNo" runat="server"></asp:TextBox></td>
        </tr>
         <tr>
        <td>开票日期：</td>
        <td><asp:TextBox ID="txtTicketDate" runat="server"></asp:TextBox></td>
        <td>BP号：</td>
        <td><asp:TextBox ID="txtBPNo" runat="server"></asp:TextBox></td>
        </tr>
         <tr>
        <td>内机型号：</td>
        <td><asp:TextBox ID="txtInMType" runat="server"></asp:TextBox></td>
        <td>内机编号：</td>
        <td><asp:TextBox ID="txtInMNO" runat="server"></asp:TextBox></td>
        </tr>
         <tr>
        <td>外机型号：</td>
        <td><asp:TextBox ID="txtOutMType" runat="server"></asp:TextBox></td>
        <td>外机编号：</td>
        <td><asp:TextBox ID="txtOutMNO" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
        <td>开机调试单位名称：</td>
        <td><asp:TextBox ID="txtUnitName" runat="server"></asp:TextBox></td>
        <td>开机调试人签名：</td>
        <td><asp:TextBox ID="txtVenderName" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
        <td>开机调试日期：</td>
        <td><asp:TextBox ID="txtDebugDate" runat="server"></asp:TextBox></td>
        </tr>
        </tbody>
        </table> 

        <table class="mnubar" cellspacing="0" cellpadding="0" height="400px">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>文件上传</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                    </td>
                </tr>
            </tbody>
        </table>        
        <div style="display: inline" id="Div2" class="tab">
              <table style="table-layout: fixed" id="Table2" cellspacing="0" cellpadding="3" width="100%">
                <colgroup>
                    <col width="110" />
                    <col/>
                    <col width="110"/>
                    <col/>
                </colgroup>
                <tbody>
                        <tr>
                            <td class="req">
                                文件选择</td>
                            <td>
                               
                           <asp:FileUpload ID="fuFilePath" runat="server" />
                           <asp:Button ID="btnUpload" runat="server" Text="上传" style="display:none"
             CssClass="button" onclick="btnUpload_Click"/>
                            </td>
                           
                        </tr>                      
                    </tbody>
            </table>
            <asp:Repeater ID="RepeaterDocuments" runat="server" 
                        onitemcommand="RepeaterDocuments_ItemCommand">
            <HeaderTemplate>
                <table id="grid" class="grid" cellspacing="0" cellpadding="0">
                    <tbody>
                        <tr class="header">
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 99%;
                                        text-align: center;">
                                        文档名称</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>                                                         
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 99%;
                                        text-align: center;">
                                        上传时间</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                              <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 99%;
                                        text-align: center;">
                                        操作</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                        </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="data" oid='<%# Eval("ID") %>'>                    
                    <td>
               <asp:LinkButton ID="lnkbtnDownload" runat="server" Text='<%#Eval("FileOriginalName") %>' CommandName="Download" CommandArgument='<%#Eval("FilePath") %>' ></asp:LinkButton>      
                    </td>                    
                    <td>
                        <%#Eval("CreateTime")%>
                    </td>
                    <td> <asp:LinkButton ID="lnkbtnDelete" OnClientClick="if(confirm('确认删除此文件?')) {return true;} else {return false;}" runat="server" Text='删除' CommandName="Delete" CommandArgument='<%#Eval("ID") %>' ></asp:LinkButton></td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </asp:Repeater>
        </div>              
    <asp:HiddenField ID="txtDispatchFormID" runat="server" />
    <asp:HiddenField ID="txtWorkingVendorOrderId" runat="server" />
    <asp:HiddenField ID="txtCustomerID" runat="server" />        
</asp:Content>

